package com.gxc.job;

import org.quartz.*;

import java.util.Date;

public class Jobs implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {

        JobDetail jobDetail = context.getJobDetail();

        JobKey key = jobDetail.getKey();
        System.out.println(key.getName());
        System.out.println(key.getGroup());

        System.out.println("hello job"+new Date());
    }
}
